﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PmSoft.Exceptions
{
    /// <summary>
    /// 系统业务通用异常
    /// </summary>
    public class BusinessException : Exception
    {
        public BusinessException() { }

        public BusinessException(int code)
        {
            Code = code;
        }

        public BusinessException(string message) : base(message) { }

        public BusinessException(string message, int code) : base(message)
        {
            Code = code;
        }

        public int Code { get; set; }
    }
}
